From 42fdfb6af4ac3a689a4ec173a8eb2e80c2681700 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 16 Dec 2015 05:15:04 +0100 Subject: [PATCH] renderborder: Actually draw the path as one element Avoids spurious lines that can sometimes be seen going towards the center of the widget. --- gtk/gtkrenderborder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkrenderborder.c b/gtk/gtkrenderborder.c index 8271b22769..213d65ef81 100644 --- a/gtk/gtkrenderborder.c +++ b/gtk/gtkrenderborder.c @@ -499,9 +499,9 @@ render_frame_stroke (cairo_t *cr, for (i = 0; i < 4; i++) { length += _gtk_rounded_box_guess_length (&stroke_box, i); - _gtk_rounded_box_path_side (&stroke_box, cr, i); } + _gtk_rounded_box_path (&stroke_box, cr); gdk_cairo_set_source_rgba (cr, &colors[0]); set_stroke_style (cr, border_width[0], stroke_style, length); cairo_stroke (cr); -- 2.30.2